Conversion char[] to char*
Posted
by sijith
on Stack Overflow
See other posts from Stack Overflow
or by sijith
Published on 2010-04-19T09:04:44Z
Indexed on
2010/04/19
9:13 UTC
Read the original article
Hit count: 142
may be this is a sizzle question but please help
void Temp1::caller()
{
char *cc=Called();
printf("sdfasfasfas");
printf("%s",cc);
}
char *Temp1::Called()
{
char a[6]="Hello";
return &a;
}
Here how to print Hello using printf("%s",cc);
© Stack Overflow or respective owner